package cn.flexui.flexuiserver.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * <p>
 * 会员权益
 * </p>
 *
 * @author apeto
 * @since 2024-09-22 10:50:52
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("member_rights")
@Schema(name = "MemberRights", description = "会员权益")
public class MemberRights extends BaseEntity<MemberRights> {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "会员卡ID")
    @TableField("member_card_id")
    private Long memberCardId;

    @Schema(description = "策略名称")
    @TableField("rights_name")
    private String rightsName;

    @Schema(description = "权益描述")
    @TableField("rights_desc")
    private String rightsDesc;

    @Schema(description = "权益类型")
    @TableField("rights_type")
    private Integer rightsType;

    @Schema(description = "权益次数")
    @TableField("count")
    private Integer count;

    @Schema(description = "权益折扣")
    @TableField("discount")
    private BigDecimal discount;
}
